package top.lshaci.framework.dingtalk.service.impl;

import com.dingtalk.api.DefaultDingTalkClient;
import com.dingtalk.api.request.OapiRobotSendRequest;
import com.dingtalk.api.response.OapiRobotSendResponse;
import com.taobao.api.ApiException;
import lombok.AllArgsConstructor;
import top.lshaci.framework.dingtalk.service.DingTalkService;

/**
 * DefaultDingTalkService
 *
 * @author lshaci
 * @since 1.0.8
 */
@AllArgsConstructor
public class DefaultDingTalkService implements DingTalkService {

    private final DefaultDingTalkClient client;

    @Override
    public OapiRobotSendResponse execute(OapiRobotSendRequest request) throws ApiException {
        return client.execute(request);
    }
}
